package com.tanhua.model.vo;

import com.tanhua.model.mongo.Options;
import com.tanhua.model.mongo.Questions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


//答案的集合
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OptionsVo {

    private String id;
    private String option;//选项

    public static OptionsVo init(Options options) {
        OptionsVo vo = new OptionsVo();

        //设置答案vo
        vo.setId(options.getId().toString());
        vo.setOption(options.getOption());
        //返回数据
        return vo;
    }
}
